﻿@model Web.ViewModels.ProjectShortDescriptionModel

<div id="person_textBaloon_container" class="@(String.IsNullOrEmpty(Model.ShortDescription) ? "ownerOnly" : "")">
	<img src="@Url.Content("~/Content/img/person_textBaloon_arrow.png")" id="person_textBaloon_arrow" />
	<div class="person_textBaloon editBallonText_field">
		<p id="editBallonText_field" class="editBallonText_field0">
            @Model.ShortDescription
        </p>
        <span class="editBallonText_dummy0" @if(!String.IsNullOrEmpty(Model.ShortDescription))
                                            {
                                                 @:style="display: none;"
                                            }>
            Добавьте краткое описание. Что-нибудь вроде: "Будем бесплатно раздавать горячие обеды бездомным"
        </span>
	</div>
	@using (Html.BeginForm("ChangeShortDescription", "Project", FormMethod.Post, new { @class = "ajaxForm_noReload", @name = "editBallonText_form" }))
 {
	 <fieldset>
		<input type="hidden" name="id" value="@(Model.id)"/>
		<div class="person_textBaloon editionInput editBallonText_input">
			@Html.TextAreaFor(x => x.ShortDescription, new
									{
										@id = "editBallonText_input",
										@class = "editBallonText_input0",
										@placeholder = "Будем бесплатно раздавать горячие обеды бездомным"
									})
			@Html.ValidationMessageFor(x => x.ShortDescription)
		</div>
		<div id="person_textBaloon_author">
			<a href="#" class="editButton_edit editButton" rel="editBallonText">Редактировать</a>
			@(Html.ActionLink<UserController>(x => x.View(Model.OrganizerId), Model.OrganizerName)), организатор
		</div>		
	</fieldset>
	 @Html.SubmitButton("editBallonText", "Сохранить", new { @class = "editButton_submit editionInput editBallonText_input" })
	<input type="reset" class="editButton_cancel editionInput editBallonText_input" value="Отмена" name="editBallonText" />
 }
</div>

